package com.symria.server.dao.system;

import com.symria.framework.dao.util.TemplateDao;
import com.symria.server.po.SysUser;
import com.symria.system.statement.Statement;

public class SystemDao extends TemplateDao {

	public SysUser findUserByName(String username){
		Statement stms = stmsFactory.createStatement(" from SysUser u where u.userName=?");
		stms.addParam(username);
	    return templateDao.find(stms, SysUser.class);
	}
}
